function g1 = static_g1(T, y, x, params, T_flag)
% function g1 = static_g1(T, y, x, params, T_flag)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T         [#temp variables by 1]  double   vector of temporary terms to be filled by function
%   y         [M_.endo_nbr by 1]      double   vector of endogenous variables in declaration order
%   x         [M_.exo_nbr by 1]       double   vector of exogenous variables in declaration order
%   params    [M_.param_nbr by 1]     double   vector of parameter values in declaration order
%                                              to evaluate the model
%   T_flag    boolean                 boolean  flag saying whether or not to calculate temporary terms
%
% Output:
%   g1
%

if T_flag
    T = model_file.static_g1_tt(T, y, x, params);
end
g1 = zeros(97, 97);
g1(1,1)=getPowerDeriv(y(1),T(1),1);
g1(1,2)=(-(params(1)*getPowerDeriv(y(2),T(1),1)));
g1(2,1)=(-(exp(y(32))*T(21)));
g1(2,2)=getPowerDeriv(y(2),1-params(3),1);
g1(2,32)=(-(y(1)*exp(y(32))*T(21)));
g1(3,1)=(-(T(5)*exp(y(32))/y(2)*T(22)));
g1(3,2)=(-(T(5)*T(22)*(-(y(1)*exp(y(32))))/(y(2)*y(2))));
g1(3,5)=1;
g1(3,31)=(-(T(7)*T(4)*params(1)*T(2)*exp(T(2)*y(31))));
g1(3,32)=(-(T(7)*params(1)*exp(T(2)*y(31))*T(3)*T(4)+T(5)*T(6)*T(22)));
g1(4,7)=getPowerDeriv(y(7),T(8),1);
g1(4,8)=(-(params(9)*getPowerDeriv(y(8),T(8),1)));
g1(4,27)=(-(T(9)*(1-params(9))*T(8)*exp(T(8)*y(27))));
g1(4,28)=(-((1-params(9))*exp(T(8)*y(27))*getPowerDeriv(y(28),T(8),1)));
g1(5,3)=1;
g1(5,5)=(-1);
g1(6,7)=(-(params(5)*(-(params(6)-y(12)))/(y(7)*y(7))*T(24)));
g1(6,12)=(-(params(5)*T(24)*(-1)/y(7)));
g1(6,14)=1/y(17);
g1(6,17)=(-y(14))/(y(17)*y(17));
g1(7,6)=1;
g1(7,11)=(-(exp((1-params(12))*y(24))*T(11)*getPowerDeriv(y(11),params(12),1)));
g1(7,12)=(-(exp((1-params(12))*y(24))*T(10)*getPowerDeriv(y(12),1-params(12),1)));
g1(7,24)=(-(T(10)*T(11)*(1-params(12))*exp((1-params(12))*y(24))));
g1(8,6)=(-1);
g1(8,8)=1;
g1(8,10)=1;
g1(8,46)=1;
g1(9,11)=exp(y(25))-(1-params(13)+y(40));
g1(9,25)=y(11)*exp(y(25));
g1(9,40)=(-y(11));
g1(10,10)=(-(T(12)*1/y(11)*T(27)));
g1(10,11)=(-(T(12)*T(27)*(-y(10))/(y(11)*y(11))));
g1(10,40)=1;
g1(11,10)=(-(T(14)*y(23)*(-(y(41)/y(11)))));
g1(11,11)=(-(T(14)*y(23)*(-((-(y(10)*y(41)))/(y(11)*y(11))))));
g1(11,13)=exp(y(13));
g1(11,22)=(-(T(14)*(-y(44))));
g1(11,23)=(-((y(42)-y(22)*y(44)+y(23)*(y(40)+1-params(13)-y(10)*y(41)/y(11)))*(-1)/(y(23)*y(23))+T(14)*(y(40)+1-params(13)-y(10)*y(41)/y(11))));
g1(11,40)=(-1);
g1(11,41)=(-(T(14)*y(23)*(-T(13))));
g1(11,42)=(-T(14));
g1(11,44)=(-(T(14)*(-y(22))));
g1(12,6)=(-(params(12)*(1-1/params(11))/y(11)));
g1(12,11)=(-((-(y(6)*params(12)*(1-1/params(11))))/(y(11)*y(11))));
g1(12,42)=1;
g1(13,11)=(-(params(12)/params(11)/(y(11)*y(11))));
g1(13,44)=1;
g1(14,10)=(-(params(18)*1/y(11)*T(28)));
g1(14,11)=(-(params(18)*T(28)*(-y(10))/(y(11)*y(11))));
g1(14,41)=1;
g1(15,3)=exp(y(13));
g1(15,13)=y(3)*exp(y(13));
g1(16,23)=y(41);
g1(16,41)=y(23);
g1(17,14)=(-1);
g1(17,22)=(-y(45));
g1(17,43)=1;
g1(17,45)=(-y(22));
g1(18,6)=(-((1-params(12))*(1-1/params(11))/y(12)));
g1(18,12)=(-((-(y(6)*(1-params(12))*(1-1/params(11))))/(y(12)*y(12))));
g1(18,43)=1;
g1(19,12)=(-((1-params(12))/params(11)/(y(12)*y(12))));
g1(19,45)=1;
g1(20,3)=(-(exp(y(25))*y(48)));
g1(20,22)=1;
g1(20,25)=(-(exp(y(25))*y(3)*y(48)));
g1(20,47)=(-1);
g1(20,48)=(-(y(3)*exp(y(25))));
g1(21,6)=(-T(15));
g1(21,15)=(-(y(6)*params(14)/2*exp(y(15)-params(44))*2*(exp(y(15)-params(44))-1)));
g1(21,46)=1;
g1(22,6)=(-(exp(y(15)-params(44))*params(14)*(exp(y(15)-params(44))-1)));
g1(22,15)=(-(y(6)*(exp(y(15)-params(44))*params(14)*(exp(y(15)-params(44))-1)+exp(y(15)-params(44))*params(14)*exp(y(15)-params(44)))));
g1(22,47)=1;
g1(23,6)=(-(exp(y(15)-params(44))*(exp(y(15)-params(44))-1)*(-params(14))));
g1(23,15)=(-(y(6)*(exp(y(15)-params(44))*(exp(y(15)-params(44))-1)*(-params(14))+exp(y(15)-params(44))*exp(y(15)-params(44))*(-params(14)))));
g1(23,48)=1;
g1(24,3)=exp(y(16))*T(23);
g1(24,15)=exp(y(16))*T(29);
g1(24,16)=T(16)*exp(y(16));
g1(25,6)=(-((1-params(40))*params(42)*1/params(46)/(y(6)/params(46))));
g1(25,15)=(-((1-params(40))*params(41)));
g1(25,16)=1-params(40);
g1(26,3)=exp(y(21)-y(15))*exp(y(49));
g1(26,15)=exp(y(49))*y(3)*(-exp(y(21)-y(15)));
g1(26,21)=y(3)*exp(y(21)-y(15))*exp(y(49));
g1(26,49)=y(3)*exp(y(21)-y(15))*exp(y(49));
g1(27,8)=(-(T(17)*1/y(28)*T(26)));
g1(27,18)=1;
g1(27,27)=(-(T(18)*(1-params(9))/params(9)*(1-1/params(10))*exp(y(27)*(1-1/params(10)))));
g1(27,28)=(-(T(17)*T(26)*(-y(8))/(y(28)*y(28))));
g1(28,7)=y(17);
g1(28,8)=(-1);
g1(28,17)=y(7);
g1(28,18)=(-y(28));
g1(28,28)=(-y(18));
g1(29,15)=(-1);
g1(29,20)=1;
g1(30,15)=(-1);
g1(30,19)=1;
g1(31,15)=(-exp(y(15)));
g1(31,21)=exp(y(21));
g1(32,29)=1;
g1(33,24)=1-params(24);
g1(33,26)=(-(params(23)*params(27)*exp(y(26))*x(1)));
g1(34,25)=1-params(16);
g1(34,26)=(-(x(1)*exp(y(26))*params(27)*params(17)));
g1(35,28)=1/y(28)-params(35)*1/y(28);
g1(36,27)=(-1);
g1(36,30)=1;
g1(37,27)=1-params(36);
g1(37,30)=(-params(37));
g1(38,26)=1-params(26);
g1(39,6)=(-1);
g1(39,10)=1;
g1(39,12)=y(14);
g1(39,14)=y(12);
g1(39,46)=1;
g1(39,50)=1;
g1(40,18)=(-(y(28)*params(39)));
g1(40,28)=(-(y(18)*params(39)));
g1(40,50)=(-1);
g1(40,51)=1;
g1(41,25)=(-1);
g1(41,52)=1;
g1(42,15)=(-1);
g1(42,21)=1;
g1(42,52)=(-1);
g1(42,54)=1;
g1(43,21)=(-1);
g1(43,53)=1;
g1(43,54)=(-1);
g1(44,25)=(-1);
g1(44,55)=1;
g1(45,15)=(-1);
g1(45,21)=1;
g1(45,55)=(-1);
g1(45,57)=1;
g1(46,21)=(-1);
g1(46,56)=1;
g1(46,57)=(-1);
g1(47,3)=(-((1+exp(y(58)))*exp(y(52))));
g1(47,52)=(-(y(3)*(1+exp(y(58)))*exp(y(52))));
g1(47,58)=exp(y(58))-exp(y(52))*y(3)*exp(y(58));
g1(48,52)=(-((1+exp(y(58)))*exp(y(52))/exp(y(58))));
g1(48,58)=(-((exp(y(58))*exp(y(58))*exp(y(52))-exp(y(58))*(1+exp(y(58)))*exp(y(52)))/(exp(y(58))*exp(y(58)))));
g1(48,60)=exp(y(60));
g1(49,54)=(-((1+exp(y(58)))*exp(y(54))/exp(y(58))));
g1(49,58)=(-((exp(y(58))*exp(y(58))*exp(y(54))-exp(y(58))*(1+exp(y(58)))*exp(y(54)))/(exp(y(58))*exp(y(58)))));
g1(49,61)=exp(y(61));
g1(50,3)=(-((1+exp(y(59)))*exp(y(55))));
g1(50,55)=(-(y(3)*(1+exp(y(59)))*exp(y(55))));
g1(50,59)=exp(y(59))-exp(y(55))*y(3)*exp(y(59));
g1(51,55)=(-((1+exp(y(59)))*exp(y(55))/exp(y(59))));
g1(51,59)=(-((exp(y(59))*exp(y(59))*exp(y(55))-exp(y(59))*(1+exp(y(59)))*exp(y(55)))/(exp(y(59))*exp(y(59)))));
g1(51,62)=exp(y(62));
g1(52,57)=(-((1+exp(y(59)))*exp(y(57))/exp(y(59))));
g1(52,59)=(-((exp(y(59))*exp(y(59))*exp(y(57))-exp(y(59))*(1+exp(y(59)))*exp(y(57)))/(exp(y(59))*exp(y(59)))));
g1(52,64)=exp(y(64));
g1(53,56)=(-((1+exp(y(59)))*exp(y(56))/exp(y(59))));
g1(53,59)=(-((exp(y(59))*exp(y(59))*exp(y(56))-exp(y(59))*(1+exp(y(59)))*exp(y(56)))/(exp(y(59))*exp(y(59)))));
g1(53,63)=exp(y(63));
g1(54,49)=(-((exp(y(49))+params(20)*(-exp(y(49))))/(exp(y(49))+params(20)*(exp(y(61))-exp(y(49))))));
g1(54,61)=(-(exp(y(61))*params(20)/(exp(y(49))+params(20)*(exp(y(61))-exp(y(49))))));
g1(54,65)=1;
g1(55,49)=(-((exp(y(49))+params(20)*(-exp(y(49))))/(exp(y(49))+params(20)*(exp(y(64))-exp(y(49))))));
g1(55,64)=(-(exp(y(64))*params(20)/(exp(y(49))+params(20)*(exp(y(64))-exp(y(49))))));
g1(55,94)=1;
g1(56,49)=1;
g1(56,65)=(-1);
g1(56,66)=1;
g1(57,49)=1;
g1(57,94)=(-1);
g1(57,95)=1;
g1(58,3)=(-(1/y(3)));
g1(58,4)=1;
g1(59,3)=y(87)*T(23)-y(18);
g1(59,15)=y(87)*T(29);
g1(59,18)=(-y(3));
g1(59,87)=T(16);
g1(60,3)=(-(exp((-y(16)))*T(23)));
g1(60,15)=(-(exp((-y(16)))*T(29)));
g1(60,16)=(-(T(16)*(-exp((-y(16))))));
g1(60,67)=(-2)*exp((-2)*y(67));
g1(61,3)=(-(exp((-2)*y(67))*T(23)));
g1(61,15)=(-(exp((-2)*y(67))*T(29)));
g1(61,67)=(-(T(16)*(-2)*exp((-2)*y(67))));
g1(61,68)=(-3)*exp((-3)*y(68));
g1(62,3)=(-(exp((-3)*y(68))*T(23)));
g1(62,15)=(-(exp((-3)*y(68))*T(29)));
g1(62,68)=(-(T(16)*(-3)*exp((-3)*y(68))));
g1(62,69)=(-4)*exp((-4)*y(69));
g1(63,3)=(-(exp((-4)*y(69))*T(23)));
g1(63,15)=(-(exp((-4)*y(69))*T(29)));
g1(63,69)=(-(T(16)*(-4)*exp((-4)*y(69))));
g1(63,70)=(-5)*exp((-5)*y(70));
g1(64,3)=(-(exp((-5)*y(70))*T(23)));
g1(64,15)=(-(exp((-5)*y(70))*T(29)));
g1(64,70)=(-(T(16)*(-5)*exp((-5)*y(70))));
g1(64,71)=(-6)*exp((-6)*y(71));
g1(65,3)=(-(exp((-6)*y(71))*T(23)));
g1(65,15)=(-(exp((-6)*y(71))*T(29)));
g1(65,71)=(-(T(16)*(-6)*exp((-6)*y(71))));
g1(65,72)=(-7)*exp((-7)*y(72));
g1(66,3)=(-(exp((-7)*y(72))*T(23)));
g1(66,15)=(-(exp((-7)*y(72))*T(29)));
g1(66,72)=(-(T(16)*(-7)*exp((-7)*y(72))));
g1(66,73)=(-8)*exp((-8)*y(73));
g1(67,3)=(-(exp((-8)*y(73))*T(23)));
g1(67,15)=(-(exp((-8)*y(73))*T(29)));
g1(67,73)=(-(T(16)*(-8)*exp((-8)*y(73))));
g1(67,74)=(-9)*exp((-9)*y(74));
g1(68,3)=(-(exp((-9)*y(74))*T(23)));
g1(68,15)=(-(exp((-9)*y(74))*T(29)));
g1(68,74)=(-(T(16)*(-9)*exp((-9)*y(74))));
g1(68,75)=(-10)*exp((-10)*y(75));
g1(69,3)=(-(exp((-10)*y(75))*T(23)));
g1(69,15)=(-(exp((-10)*y(75))*T(29)));
g1(69,75)=(-(T(16)*(-10)*exp((-10)*y(75))));
g1(69,76)=(-11)*exp((-11)*y(76));
g1(70,3)=(-(exp((-11)*y(76))*T(23)));
g1(70,15)=(-(exp((-11)*y(76))*T(29)));
g1(70,76)=(-(T(16)*(-11)*exp((-11)*y(76))));
g1(70,77)=(-12)*exp((-12)*y(77));
g1(71,3)=(-(exp((-12)*y(77))*T(23)));
g1(71,15)=(-(exp((-12)*y(77))*T(29)));
g1(71,77)=(-(T(16)*(-12)*exp((-12)*y(77))));
g1(71,78)=(-13)*exp((-13)*y(78));
g1(72,3)=(-(exp((-13)*y(78))*T(23)));
g1(72,15)=(-(exp((-13)*y(78))*T(29)));
g1(72,78)=(-(T(16)*(-13)*exp((-13)*y(78))));
g1(72,79)=(-14)*exp((-14)*y(79));
g1(73,3)=(-(exp((-14)*y(79))*T(23)));
g1(73,15)=(-(exp((-14)*y(79))*T(29)));
g1(73,79)=(-(T(16)*(-14)*exp((-14)*y(79))));
g1(73,80)=(-15)*exp((-15)*y(80));
g1(74,3)=(-(exp((-15)*y(80))*T(23)));
g1(74,15)=(-(exp((-15)*y(80))*T(29)));
g1(74,80)=(-(T(16)*(-15)*exp((-15)*y(80))));
g1(74,81)=(-16)*exp((-16)*y(81));
g1(75,3)=(-(exp((-16)*y(81))*T(23)));
g1(75,15)=(-(exp((-16)*y(81))*T(29)));
g1(75,81)=(-(T(16)*(-16)*exp((-16)*y(81))));
g1(75,82)=(-17)*exp((-17)*y(82));
g1(76,3)=(-(exp((-17)*y(82))*T(23)));
g1(76,15)=(-(exp((-17)*y(82))*T(29)));
g1(76,82)=(-(T(16)*(-17)*exp((-17)*y(82))));
g1(76,83)=(-18)*exp((-18)*y(83));
g1(77,3)=(-(exp((-18)*y(83))*T(23)));
g1(77,15)=(-(exp((-18)*y(83))*T(29)));
g1(77,83)=(-(T(16)*(-18)*exp((-18)*y(83))));
g1(77,84)=(-19)*exp((-19)*y(84));
g1(78,3)=(-(exp((-19)*y(84))*T(23)));
g1(78,15)=(-(exp((-19)*y(84))*T(29)));
g1(78,84)=(-(T(16)*(-19)*exp((-19)*y(84))));
g1(78,85)=(-20)*exp((-20)*y(85));
g1(79,16)=1;
g1(79,85)=(-1);
g1(79,86)=1;
g1(80,25)=(-1);
g1(80,31)=1;
g1(81,25)=(-1);
g1(81,33)=1;
g1(82,25)=(-1);
g1(82,34)=1;
g1(83,25)=(-1);
g1(83,36)=1;
g1(84,36)=(-1);
g1(84,37)=1;
g1(85,7)=(-(1/(1+params(5))*getPowerDeriv(y(7),T(19),1)*T(25)));
g1(85,9)=1;
g1(85,12)=(-(T(25)*params(5)/(1+params(5))*(-(getPowerDeriv(params(6)-y(12),T(19),1)))));
g1(86,25)=(-1);
g1(86,32)=1;
g1(87,19)=(-1);
g1(87,21)=1;
g1(87,31)=(-1);
g1(87,35)=1;
g1(88,15)=(-1);
g1(88,21)=1;
g1(88,25)=(-1);
g1(88,38)=1;
g1(89,15)=(-1);
g1(89,21)=1;
g1(89,25)=(-1);
g1(89,39)=1;
g1(90,57)=(-1);
g1(90,88)=1-params(21);
g1(91,62)=(-1);
g1(91,89)=1-params(21);
g1(92,56)=(-1);
g1(92,90)=1-params(21);
g1(93,63)=(-1);
g1(93,91)=1-params(21);
g1(94,49)=(-1);
g1(94,92)=1-params(21);
g1(95,16)=(-1);
g1(95,93)=1-params(21);
g1(96,64)=(-1);
g1(96,96)=1;
g1(97,63)=(-1);
g1(97,97)=1;
if ~isreal(g1)
    g1 = real(g1)+2*imag(g1);
end
end
